﻿<Window x:Class="Kinesthesia.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Kinesthesia" Height="720" Width="1280" xmlns:my="clr-namespace:Kinesthesia.UI_Controllers" xmlns:my1="clr-namespace:Microsoft.Samples.Kinect.WpfViewers;assembly=Microsoft.Samples.Kinect.WpfViewers" Loaded="Window_Loaded" Closing="Window_Closing" BorderBrush="Black" Icon="/Kinesthesia;component/SupportingFiles/index.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="588*" />
            <RowDefinition Height="93*" />
        </Grid.RowDefinitions>
        <my1:KinectSensorChooser HorizontalAlignment="Left" Margin="18,46,0,0" Name="kinectSensorChooser1" VerticalAlignment="Top" Width="328" KinectSensorChanged="kinectSensorChooser1_KinectSensorChanged" Kinect="{Binding}" />
        <my1:KinectColorViewer HorizontalAlignment="Left" Name="kinectColorViewer1" VerticalAlignment="Top" Height="480" Width="640" Kinect="{Binding ElementName=kinectSensorChooser1, Path=Kinect}" />
        <my1:KinectSkeletonViewer HorizontalAlignment="Left" Name="kinectSkeletonViewer1" VerticalAlignment="Top" Width="640" Height="480" Kinect="{Binding ElementName=kinectSensorChooser1, Path=Kinect}" />
        <Button Content="Start" Height="23" HorizontalAlignment="Left" Margin="714,123,0,0" Name="trackButton" VerticalAlignment="Top" Width="75" Click="trackButton_Click" />
        <TextBox ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" 
         ScrollViewer.VerticalScrollBarVisibility="Auto" Height="191" HorizontalAlignment="Left" Margin="844,250,0,0" Name="logBlock" VerticalAlignment="Top" Width="374" />
        <Button Content="Play" Height="23" HorizontalAlignment="Left" Margin="714,198,0,0" Name="playButton" VerticalAlignment="Top" Width="75" Click="playButton_Click" />
        <Label Content="Start Tracking Gestures" Height="28" HorizontalAlignment="Left" Margin="680,89,0,0" Name="label9" VerticalAlignment="Top" Width="144" FontWeight="Bold" />
        <Label Content="Play parsed MIDI(CSV) file" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="680,170,0,0" Name="label10" VerticalAlignment="Top" Width="164" />
        <Label Content="Open and parse CSV file" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="684,227,0,0" Name="label11" VerticalAlignment="Top" Width="160" />
        <Button Content="Open" Height="23" HorizontalAlignment="Left" Margin="714,284,0,0" Name="browseButton" VerticalAlignment="Top" Width="75" Click="browseButton_Click" />
        <TextBox Height="194" HorizontalAlignment="Left" Margin="844,476,0,0" Name="settingsLog" ScrollViewer.CanContentScroll="True" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" VerticalAlignment="Top" Width="374" Grid.RowSpan="2" />
        <Label Content="Log" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="844,216,0,0" Name="label12" VerticalAlignment="Top" Width="160" />
        <Label Content="Settings log" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="844,442,0,0" Name="label13" VerticalAlignment="Top" Width="160" />
        <Label Content="Open and parse config file" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="676,316,0,0" Name="label14" VerticalAlignment="Top" Width="160" />
        <Button Content="Open" Height="23" HorizontalAlignment="Left" Margin="714,350,0,0" Name="settingsButton" VerticalAlignment="Top" Width="75" Click="settingsButton_Click" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="569,510,0,0" Name="rHandMinLengthSlider" VerticalAlignment="Top" Width="184" Maximum="1" LargeChange="0.01" SmallChange="0.001" ValueChanged="rHandMinLengthSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="569,539,0,0" Name="rHandMaxLengthSlider" VerticalAlignment="Top" Width="184" Maximum="2" LargeChange="0.01" SmallChange="0.001" ValueChanged="rHandMaxLengthSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="569,568,0,0" Name="rHandMinHeightSlider" VerticalAlignment="Top" Width="184" Grid.RowSpan="2" LargeChange="0.01" Maximum="1" SmallChange="0.001" ValueChanged="rHandMinHeightSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="569,9,0,0" Name="rHandMaxHeightSlider" VerticalAlignment="Top" Width="184" Grid.Row="1" Maximum="1" LargeChange="0.01" SmallChange="0.01" ValueChanged="rHandMaxHeightSlider_ValueChanged" Value="0" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="569,38,0,0" Name="rHandMinDurationSlider" VerticalAlignment="Top" Width="184" Grid.Row="1" Maximum="3000" SmallChange="50" LargeChange="100" ValueChanged="rHandMinDurationSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="569,64,0,0" Name="rHandMaxDurationSlider" VerticalAlignment="Top" Width="184" Grid.Row="1" Maximum="3000" LargeChange="100" SmallChange="50" ValueChanged="rHandMaxDurationSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="194,510,0,0" Name="lHandMinLengthSlider" VerticalAlignment="Top" Width="184" Maximum="1" LargeChange="0.01" SmallChange="0.001" ValueChanged="lHandMinLengthSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="194,539,0,0" Name="lHandMaxLengthSlider" VerticalAlignment="Top" Width="184" Maximum="1" LargeChange="0.01" SmallChange="0.001" ValueChanged="lHandMaxLengthSlider_ValueChanged" />
        <Slider HorizontalAlignment="Left" Margin="194,568,0,90" Name="lHandMinHeightSlider" Width="184" Grid.RowSpan="2" Maximum="1" LargeChange="0.01" SmallChange="0.001" ValueChanged="lHandMinHeightSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="194,9,0,0" Name="lHandMaxHeightSlider" VerticalAlignment="Top" Width="184" Grid.Row="1" Maximum="1" LargeChange="0.01" SmallChange="0.001" ValueChanged="lHandMaxHeightSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="194,38,0,0" Name="lHandMinDurationSlider" VerticalAlignment="Top" Width="184" Grid.Row="1" Maximum="3000" SmallChange="50" LargeChange="100" ValueChanged="lHandMinDurationSlider_ValueChanged" />
        <Slider Height="23" HorizontalAlignment="Left" Margin="194,64,0,0" Name="lHandMaxDurationSlider" VerticalAlignment="Top" Width="184" Grid.Row="1" Maximum="3000" LargeChange="100" SmallChange="50" ValueChanged="lHandMaxDurationSlider_ValueChanged" />
        <Label Content="for MIDI track" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="703,250,0,0" Name="label15" VerticalAlignment="Top" Width="160" />
        <Label Content="Minimal Length" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="90,505,0,0" Name="label22" VerticalAlignment="Top" Width="98" />
        <Label Content="Maximal Length" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="87,534,0,0" Name="label23" VerticalAlignment="Top" Width="101" />
        <Label Content="Minimal Height" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="90,563,0,0" Name="label24" VerticalAlignment="Top" Width="98" Grid.RowSpan="2" />
        <Label Content="Maximal Height" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="87,4,0,0" Name="label25" VerticalAlignment="Top" Width="101" Grid.Row="1" />
        <Label Content="Minimal Duration" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="76,33,0,0" Name="label26" VerticalAlignment="Top" Width="112" Grid.Row="1" />
        <Label Content="Maximal Duration" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="76,59,0,0" Name="label27" VerticalAlignment="Top" Width="112" Grid.Row="1" />
        <Label Content="Left Hand Swipe Gesture Properties" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="133,476,0,0" Name="label28" VerticalAlignment="Top" Width="213" />
        <Label Content="Right Hand Swipe Gesture Properties" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="516,476,0,0" Name="label29" VerticalAlignment="Top" Width="219" />
        <Label Content="Minimal Length" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="465,505,0,0" Name="label16" VerticalAlignment="Top" Width="98" />
        <Label Content="Maximal Length" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="462,534,0,0" Name="label17" VerticalAlignment="Top" Width="101" />
        <Label Content="Minimal Height" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="465,563,0,0" Name="label18" VerticalAlignment="Top" Width="98" Grid.RowSpan="2" />
        <Label Content="Maximal Height" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="462,4,0,0" Name="label19" VerticalAlignment="Top" Width="101" Grid.Row="1" />
        <Label Content="Minimal Duration" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="451,33,0,0" Name="label20" VerticalAlignment="Top" Width="112" Grid.Row="1" />
        <Label Content="Maximal Duration" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="451,59,0,0" Name="label21" VerticalAlignment="Top" Width="112" Grid.Row="1" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="384,505,0,0" Name="lHandMinLengthSliderBox" VerticalAlignment="Top" Width="61" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="384,534,0,0" Name="lHandMaxLengthSliderBox" VerticalAlignment="Top" Width="61" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="384,560,0,0" Name="lHandMinHeightSliderBox" VerticalAlignment="Top" Width="61" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="384,0,0,0" Name="lHandMaxHeightSliderBox" VerticalAlignment="Top" Width="61" Grid.Row="1" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="384,33,0,0" Name="lHandMinDurationSliderBox" VerticalAlignment="Top" Width="61" Grid.Row="1" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="384,59,0,0" Name="lHandMaxDurationSliderBox" VerticalAlignment="Top" Width="62" Grid.Row="1" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="752,505,0,0" Name="rHandMinLengthSliderBox" VerticalAlignment="Top" Width="72" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="752,534,0,0" Name="rHandMaxLengthSliderBox" VerticalAlignment="Top" Width="71" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="752,560,0,0" Name="rHandMinHeightSliderBox" VerticalAlignment="Top" Width="71" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="752,0,0,0" Name="rHandMaxHeightSliderBox" VerticalAlignment="Top" Width="72" Grid.Row="1" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="752,33,0,0" Name="rHandMinDurationSliderBox" VerticalAlignment="Top" Width="72" Grid.Row="1" />
        <Label Content="0" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="752,59,0,0" Name="rHandMaxDurationSliderBox" VerticalAlignment="Top" Width="70" Grid.Row="1" />
        <Label Content="Save config file" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="703,389,0,0" Name="label30" VerticalAlignment="Top" Width="105" />
        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="714,418,0,0" Name="saveConfigFileButton" VerticalAlignment="Top" Width="75" Click="saveConfigFileButton_Click" />
        <Button Content="Refresh" Height="23" HorizontalAlignment="Left" Margin="890,46,0,0" Name="refreshButton" VerticalAlignment="Top" Width="75" Click="refreshButton_Click" />
        <Label Content="Refresh Settings" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="876,12,0,0" Name="label31" VerticalAlignment="Top" Width="105" />
        <Button Content="Restore" Height="23" HorizontalAlignment="Left" Margin="890,123,0,0" Name="restoreButton" VerticalAlignment="Top" Width="75" Click="restoreButton_Click" />
        <Label Content="Restore Default Settings" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="850,89,0,0" Name="label32" VerticalAlignment="Top" Width="154" />
        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="1037,46,0,0" Name="quickSaveConfig" VerticalAlignment="Top" Width="75" Click="quickSaveConfig_Click" />
        <Label Content="Quick Save Config File" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="1010,12,0,0" Name="label1" VerticalAlignment="Top" Width="141" />
        <Button Content="Load" Height="23" HorizontalAlignment="Left" Margin="1037,123,0,0" Name="quickLoadConfig" VerticalAlignment="Top" Width="75" Click="quickLoadConfig_Click" />
        <Label Content="Load Last Config File" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="1010,89,0,0" Name="label2" VerticalAlignment="Top" Width="131" />
        <Button Content="Load" Height="23" HorizontalAlignment="Left" Margin="1158,0,0,471" Name="quickLoadMIDI" VerticalAlignment="Bottom" Width="75" Click="quickLoadMIDI_Click" />
        <Label Content="Load Last MIDI File" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="1138,69,0,0" Name="label3" VerticalAlignment="Top" Width="131" />
        <Button Content="Start" Height="23" HorizontalAlignment="Left" Margin="714,46,0,0" Name="voiceRecognizerButton" VerticalAlignment="Top" Width="75" Click="voiceRecognizerButton_Click" />
        <Label Content="Start Voice Recognition" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="680,12,0,0" Name="label4" VerticalAlignment="Top" Width="144" />
        <ComboBox Height="23" HorizontalAlignment="Left" Margin="936,185,0,0" Name="devicesComboBox" VerticalAlignment="Top" Width="282" SelectionChanged="devicesComboBox_SelectionChanged" />
        <Label Content="MIDI output:" FontWeight="Bold" Height="28" HorizontalAlignment="Left" Margin="844,180,0,0" Name="label5" VerticalAlignment="Top" Width="86" />
    </Grid>
</Window>
